@import "~pc/styles/lib_var.less";
@import "~pc/styles/lib_mixins.less";

.viewItemInput {
  width: 100%;
  caret-color: var(--primaryColor);
  display: flex;
  align-items: center;

  .iconMove {
    margin-right: 2px;
  }
}

.operateItem {
  display: flex;
  align-items: center;
  padding: 0 8px;
  height: 40px;
  color: var(--firstLevelText);
  border-radius: 4px;
  cursor: pointer;

  .iconType {
    margin-left: 8px;
    margin-right: 4px;
    font-size: 15px;
  }

  .iconRename {
    margin-right: 8px;
  }

  .iconRename,
  .iconDelete,
  .iconMove,
  .iconType {
    display: flex;
    align-items: center;
  }

  .iconRename,
  .iconDelete {
    opacity: 0;
  }

  @media (any-hover: hover) {
    &:hover {
      background: var(--rowSelectedBg);

      .iconRename,
      .iconDelete {
        opacity: 1;
      }
    }
  }
  @media screen and (max-width: 768px) {
    .iconRename,
    .iconDelete {
      padding: 4px;
      opacity: 1;
    }
  }


  .text {
    flex: 1;
    margin-right: 32px;
    height: 40px;
    line-height: 40px;

    .name {
      display: inline-flex;
      align-items: center;
      width: 100%;
      height: 100%;
    }

    .ellipsis();
  }
}

.editViewNameInput {
  background: var(--rowSelectedBg);
  border-radius: 2px;
  box-shadow: none;
}
